import request from '@/utils/request'

// 查询求助信息列表
export function listQiuzhuxinxi(query) {
  return request({
    url: '/system/qiuzhuxinxi/list',
    method: 'get',
    params: query
  })
}

// 查询求助信息详细
export function getQiuzhuxinxi(id) {
  return request({
    url: '/system/qiuzhuxinxi/' + id,
    method: 'get'
  })
}

// 新增求助信息
export function addQiuzhuxinxi(data) {
  return request({
    url: '/system/qiuzhuxinxi',
    method: 'post',
    data: data
  })
}

// 修改求助信息
export function updateQiuzhuxinxi(data) {
  return request({
    url: '/system/qiuzhuxinxi',
    method: 'put',
    data: data
  })
}

// 删除求助信息
export function delQiuzhuxinxi(id) {
  return request({
    url: '/system/qiuzhuxinxi/' + id,
    method: 'delete'
  })
}
